﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Marvin.Data.Linq2Sql;

namespace Marvin.Data.Entities
{
    public class Project : EntityBase
    {
        #region Encapsulating data entity
        protected TProject project;
        protected override IDataEntity DataEntity
        {
            get
            {
                return this.project as IDataEntity;
            }
            set
            {
                this.project = value as TProject;
            }
        }
        #endregion

        #region Properties

        public override int Id
        {
            get
            {
                return project.IProjectId;
            }
            set
            {
                project.IProjectId = value;
            }
        }

        public string Name
        {
            get
            {
                return project.SName;
            }
            set
            {
                project.SName = value;
            }
        }

        public string Description
        {
            get
            {
                return project.SDescription;
            }
            set
            {
                project.SDescription = value;
            }
        }

        #endregion
    }
}
